﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PMatch.Formats.UniProt
{
	public partial class uniprot
	{
		public string GetRawSequence(int entry)
		{
			var seq = this.entry[entry].GetRawString();
			return seq;
		}
	}

	public partial class entry
	{
		public string GetRawString()
		{
			var seq = this.sequence.Value;
			var sb = new StringBuilder(seq.Length);
			foreach (var item in seq)
			{
				if (char.IsLetter(item)) sb.Append(item);
			}
			return sb.ToString();
		}
	}
}
